package com.aek.aekdroid.help;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

import com.aek.aekdroid.R;

public class TabHelpActivity extends TabActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tab_help);

		Resources res = getResources();
		TabHost tabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;

		// Schedule Help
		intent = new Intent().setClass(this, HelpScheduleActivity.class);

		spec = tabHost
				.newTabSpec("schedule")
				.setIndicator(getString(R.string.help_scheduleTitle),
						res.getDrawable(R.drawable.ic_tab_schedule_white)).setContent(intent);
		tabHost.addTab(spec);

		// Details Help
		intent = new Intent().setClass(this, HelpMatchActivity.class);
		spec = tabHost
				.newTabSpec("match")
				.setIndicator(getString(R.string.help_detailsTitle),
						res.getDrawable(R.drawable.ic_tab_details_white)).setContent(intent);
		tabHost.addTab(spec);

		// About Help
		intent = new Intent().setClass(this, HelpAboutActivity.class);
		spec = tabHost
				.newTabSpec("about")
				.setIndicator(getString(R.string.help_aboutTitle),
						res.getDrawable(R.drawable.ic_tab_info)).setContent(intent);
		tabHost.addTab(spec);

		tabHost.setCurrentTab(0);

	}

}
